package lab02.test05;

public class Ladder {
    //构造函数
    Ladder(){}

    //属性：上底、下底、高、面积
    double up;
    double down;
    double height;
    double area;

    ///行为：面积
    double area(){
        return ((up+down)*height)/2;
    }


}
